<%@page import="com.demoweb.model.dto.Membership"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
   
<div id="login" class="boxed">
      <h2 class="title">Client Account</h2>
      <div class="content">     
      <%
           	if(session.getAttribute("loginuser") == null)  {
           %>
		<form id="loginform" method="post" action="fortressLogin.nhn">  
          <fieldset>
          <legend>Login</legend>
          <label for="inputtext1">Client ID:</label>
          <input id="inputtext1" type="text" name="memberId" value="" />
          <label for="inputtext2">Password:</label>
          <input id="inputtext2" type="password" name="passwd" value="" />
          <input id="inputsubmit1" type="submit" name="inputsubmit1" value="Login" />
          <p><a href="/demoweb/fortress/fortressregisterform.nhn">Membership Register</a></p>
          <p><a href="/demoweb/fortress/fortressmemberservice.nhn">Forgot your id/password?</a></p>
          </fieldset>
        </form>
	 <%
	 	} else {
	 %>	 
	 	<form id="loginform" method="post" action="fortressLogin.nhn">  
          <fieldset>
          <legend>Login</legend>
          	 <%
          	 	Membership member = (Membership)session.getAttribute("loginuser");
          	 %>
			 <a2> <%= member.getMemberId() %> 님 환영합니다. </a2>
			 <a href="/demoweb/fortress/fortressLogout.nhn"> 로그아웃</a></br>
		 	 <input type="button" value="Start" style="width:200px" style="hegiht:50px" onclick="location.href='.action';" />
			 <% }  %>      
          </fieldset>
        </form>
      </div>
    </div>   